package com.nf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Student {

    @Autowired
    private Car car;

    public void drive(){
        System.out.println("正在驾驶:"+car);
    }
}
